;/**
  * 兼容表单设计器v2021适配器
  * @param {Object} global
  * @param {Object} factory
  */
(function(global, factory) {
	"use strict";
	if(typeof define === "function" && define.amd) {
		define(function() {
			return factory(global);
		});
	} else {
		factory(global);
	}
})( typeof window !== "undefined" ? window : this, function(window) {
	{
		//全局初始化
		//读取工作区宽度
		let layoutScreenSizeType = function() {
			let w = $("body").width();
			//超小屏幕 手机 (<768px)	小屏幕 平板 (≥768px)	中等屏幕 桌面显示器 (≥992px)	大屏幕 大桌面显示器 (≥1200px)
			let screenName = 'screen-size-mobile';
			if(w >= 992) {
				screenName = 'screen-size-desktop';
			}
			$("body").removeClass("screen-size-mobile").removeClass("screen-size-desktop").addClass(screenName);
		}
		layoutScreenSizeType();
		$(window).resize(layoutScreenSizeType);
		
	}
} );